package com.keyancompany.zhongbaopingtai.model;

import java.io.Serializable;

/**
 * Created by firefox on 2017/6/26.
 */

public class BalanceHistoryModel implements Serializable {
    //    "money":金额,
//            "createTime":交易时间,
//            "source":交易类型（1充值2提现3保证金4里程碑资金5保证金退还6赔偿金7调解报酬）,
//            "remark":交易信息}
    private String money;
    private String createTime;
    private int source;
    private String remark;

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    //1充值2提现3保证金4里程碑资金5保证金退还6赔偿金7调解报酬
    public String getSourceStr() {
        String value = "";
        if (source == 1) {
            return "充值";
        } else if (source == 2) {
            return "提现";
        } else if (source == 3) {
            return "保证金";
        } else if (source == 4) {
            return "里程碑资金";
        } else if (source == 5) {
            return "保证金退还";
        } else if (source == 6) {
            return "赔偿金";
        } else if (source == 7) {
            return "调解报酬";
        }
        return "";
    }
}
